<template>
	<view class="store">
		<view class="link" v-for="item in dataList" @click="to()" :key="item">
			<image class="fm" src="item.bannerUrl" mode=""></image>
			<view class="right">
				<view class="name">
					{{item.name}}
				</view>
				<view class="address">
					<van-icon size="18" name="location-o" />
					<text>{{item.address}}</text>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				dataList:[]
			}
		},
		onLoad() {
			this.getList();
		},
		onShareAppMessage(){
		},
		methods: {
			to(item=1) {
				uni.navigateTo({
					url: '/pages/store/detail?id='+item
				});
			},
			getList(){
				const requestParam = {
					url: "/app/mall/getMallStoreInfoList",
					method: "GET",
					data:{
						pageNum: 1,
						pageSize: 20,
					},
					callBack: (res) => {
						this.dataList=res.data;
					}
				}
				this.$request(requestParam);
			},
		}
	}
</script>

<style lang="scss">
	@import './style.scss';
</style>
